home *** CD-ROM | disk | FTP | other *** search
/ Java Internet Programming Reference Guide / Java Internet Programming Reference Guide.iso / autorun / java.dir / 00135_cans.txt < prev    next >
Encoding:
Text File  |  1996-01-12  |  4.7 KB  |  796 lines

  1. sup method
  2.  
  3.  
  4.  
  5. Causes the calling string object to be displayed as a superscript by surrounding it with HTML superscript tags,  <SUP>... <SUP>
  6.  
  7.  
  8.  
  9.  
  10.  
  11. Syntax
  12.  
  13.  
  14.  
  15.  
  16. sup()
  17.  
  18.  
  19.  
  20.  
  21.  
  22.  
  23. Description
  24.  
  25.  
  26.  
  27.  
  28.  
  29.  
  30. xxx Description to be supplied.
  31.  
  32.  
  33.  
  34.  
  35.  
  36. Applies to
  37.  
  38.  
  39.  
  40.  
  41.  
  42.  
  43. string
  44.  
  45.  
  46.  
  47.  
  48.  
  49. Examples
  50.  
  51.  
  52.  
  53.  
  54.  
  55.  
  56. xxx Examples to be supplied.
  57.  
  58.  
  59.  
  60.  
  61.  
  62. See also
  63.  
  64.  
  65.  
  66.  
  67. sub method
  68.  
  69.  
  70. ------------------------------------------------------------------------
  71.  
  72.  
  73.  
  74.  
  75.  
  76. tan method
  77.  
  78.  
  79.  
  80.  
  81.  
  82.  
  83.  
  84. Returns the tangent of its argument. The argument is in radians.
  85.  
  86.  
  87.  
  88.  
  89.  
  90. Syntax
  91.  
  92.  
  93.  
  94.  
  95. tan(arg)
  96.  
  97.  
  98.  
  99.  
  100.  
  101.  
  102. Applies to
  103.  
  104.  
  105.  
  106.  
  107.  
  108.  
  109. Math
  110.  
  111.  
  112.  
  113.  
  114.  
  115. Examples
  116.  
  117.  
  118.  
  119.  
  120.  
  121.  
  122. xxx Examples to be supplied.
  123.  
  124.  
  125.  
  126.  
  127.  
  128. See also
  129.  
  130.  
  131.  
  132.  
  133. acos, asin, atan, cos, sin methods
  134.  
  135.  
  136.  
  137. ------------------------------------------------------------------------
  138.  
  139.  
  140.  
  141.  
  142.  
  143. toGMTString method
  144.  
  145.  
  146.  
  147.  
  148.  
  149.  
  150.  
  151.  
  152.  
  153. Syntax
  154.  
  155.  
  156.  
  157.  
  158. dateObj.toGMTString()
  159.  
  160.  
  161.  
  162. where dateObj is a date object.
  163.  
  164.  
  165.  
  166.  
  167.  
  168. Description
  169.  
  170.  
  171.  
  172.  
  173.  
  174.  
  175.  
  176. Converts a date to a String, using the Internet GMT conventions. 
  177.  
  178.  
  179.  
  180.  
  181.  
  182. Applies to
  183.  
  184.  
  185.  
  186.  
  187.  
  188.  
  189. Date
  190.  
  191.  
  192.  
  193.  
  194.  
  195. Examples
  196.  
  197.  
  198.  
  199.  
  200.  
  201.  
  202. today.toGMTString()
  203.  
  204.  
  205.  
  206.  
  207.  
  208. If today is a date object, then toGMTString would convert the date to
  209. GMT (UTC) using the operating system's time zone offset, and return a string
  210. value in the following form:
  211.  
  212.  
  213. Mon, 18 Dec 1995 17:28:35 GMT
  214.  
  215.  
  216.  
  217. ------------------------------------------------------------------------
  218.  
  219.  
  220.  
  221.  
  222.  
  223. toLocaleString method
  224.  
  225.  
  226.  
  227.  
  228.  
  229.  
  230.  
  231.  
  232.  
  233. Syntax
  234.  
  235.  
  236.  
  237.  
  238. dateObj.toLocaleString()
  239.  
  240.  
  241.  
  242. where dateObj is a date object.
  243.  
  244.  
  245.  
  246.  
  247.  
  248. Description
  249.  
  250.  
  251.  
  252.  
  253.  
  254.  
  255.  
  256. Converts a date to a String, using the locale conventions. 
  257.  
  258.  
  259.  
  260.  
  261.  
  262. Applies to
  263.  
  264.  
  265.  
  266.  
  267.  
  268.  
  269. Date
  270.  
  271.  
  272.  
  273.  
  274.  
  275. Examples
  276.  
  277.  
  278.  
  279.  
  280.  
  281.  
  282. today.toLocaleString()
  283.  
  284.  
  285.  
  286.  
  287.  
  288. If today is a date object, then toLocaleString will return a string value
  289. in the following form:
  290.  
  291.  
  292. 12/18/95 17:28:35
  293.  
  294.  
  295.  
  296. ------------------------------------------------------------------------
  297.  
  298.  
  299.  
  300.  
  301.  
  302. toLowerCase method
  303.  
  304.  
  305.  
  306.  
  307.  
  308.  
  309.  
  310. The toLowerCase method of string objects converts the string to all upper case.
  311.  
  312.  
  313.  
  314.  
  315.  
  316. Syntax
  317.  
  318.  
  319.  
  320.  
  321. toLowerCase()
  322.  
  323.  
  324.  
  325.  
  326.  
  327.  
  328. Description
  329.  
  330.  
  331.  
  332.  
  333.  
  334.  
  335. xxx Description to be supplied.
  336.  
  337.  
  338.  
  339.  
  340.  
  341. Applies to
  342.  
  343.  
  344.  
  345.  
  346.  
  347.  
  348. string
  349.  
  350.  
  351.  
  352.  
  353.  
  354. Examples
  355.  
  356.  
  357.  
  358.  
  359.  
  360.  
  361. For example, "ALPHABET"toLowerCase yields "alphabet"
  362.  
  363.  
  364.  
  365.  
  366.  
  367. See also
  368.  
  369.  
  370.  
  371.  
  372. toUpperCase method
  373.  
  374.  
  375. ------------------------------------------------------------------------
  376.  
  377.  
  378.  
  379.  
  380.  
  381. toString method
  382.  
  383.  
  384.  
  385.  
  386.  
  387.  
  388.  
  389. For location, returns location.href, so you can use location as a string 
  390. without typing "href" For Date, converts a date to a string.
  391.  
  392.  
  393.  
  394.  
  395.  
  396. Syntax
  397.  
  398.  
  399.  
  400.  
  401. toString()
  402.  
  403.  
  404.  
  405.  
  406.  
  407.  
  408. Description
  409.  
  410.  
  411.  
  412.  
  413.  
  414.  
  415. xxx Description to be supplied.
  416.  
  417.  
  418.  
  419.  
  420.  
  421. Applies to
  422.  
  423.  
  424.  
  425.  
  426.  
  427.  
  428. location, Date methods
  429.  
  430.  
  431.  
  432.  
  433.  
  434. Examples
  435.  
  436.  
  437.  
  438.  
  439.  
  440.  
  441.  
  442. Here is an example of using toString with a date object, assuming theBigDay is a date object:
  443.  
  444.  
  445. theBigDay.toString()
  446.  
  447.  
  448.  
  449.  
  450.  
  451. More Examples to be supplied.
  452.  
  453.  
  454. ------------------------------------------------------------------------
  455.  
  456.  
  457.  
  458.  
  459.  
  460. toUpperCase method
  461.  
  462.  
  463.  
  464.  
  465.  
  466.  
  467.  
  468. The toUpperCase method of string objects converts the string to all upper case.
  469.  
  470.  
  471.  
  472.  
  473.  
  474. Syntax
  475.  
  476.  
  477.  
  478.  
  479. toUpperCase()
  480.  
  481.  
  482.  
  483.  
  484.  
  485.  
  486. Description
  487.  
  488.  
  489.  
  490.  
  491.  
  492.  
  493. xxx Description to be supplied.
  494.  
  495.  
  496.  
  497.  
  498.  
  499. Applies to
  500.  
  501.  
  502.  
  503.  
  504.  
  505.  
  506. string
  507.  
  508.  
  509.  
  510.  
  511.  
  512. Examples
  513.  
  514.  
  515.  
  516.  
  517.  
  518.  
  519. For example, "alphabet"toUpperCase yields "ALPHABET"
  520.  
  521.  
  522.  
  523.  
  524.  
  525. See also
  526.  
  527.  
  528.  
  529.  
  530. toLowerCase method
  531.  
  532.  
  533.  
  534. ------------------------------------------------------------------------
  535.  
  536.  
  537.  
  538.  
  539.  
  540. UTC method
  541.  
  542.  
  543.  
  544.  
  545.  
  546.  
  547.  
  548.  
  549.  
  550. Syntax
  551.  
  552.  
  553.  
  554.  
  555. Date.UTC(year, month, mday [, hrs] [, min] [, sec])
  556.  
  557.  
  558.  
  559.  
  560.  
  561. Description
  562.  
  563.  
  564.  
  565.  
  566.  
  567.  
  568.  
  569. UTC takes comma-delimited date parameters and returns the number
  570. of milliseconds since January 1, 1970 00:00:00, Universal Coordinated Time (GMT).
  571.  
  572. The arameters are: 
  573.  
  574.  
  575.  
  576. ΓÇóyear - a year after 1900 
  577. ΓÇómonth - a month between 0-11 
  578. ΓÇódate - day of the month between 1-31 
  579. ΓÇóhrs - hours between 0-23 
  580. ΓÇómin - minutes between 0-59 
  581. ΓÇósec - seconds between 0-59 
  582.  
  583.  
  584.  
  585.  
  586.  
  587.  
  588.  
  589. UTC is a static method of Date.  That means that you always use it as
  590. Date.UTC(), rather than as a method of a date object you created.
  591.  
  592.  
  593.  
  594.  
  595.  
  596. Applies to
  597.  
  598.  
  599.  
  600.  
  601.  
  602.  
  603. Date
  604.  
  605.  
  606.  
  607.  
  608.  
  609. Examples
  610.  
  611.  
  612.  
  613.  
  614.  
  615.  
  616.  
  617. The following statement creates a date object using GMT instead of local time:
  618.  
  619.  
  620. gmtDate = new Date(Date.UTC(96, 11, 1, 0, 0, 0))
  621.  
  622.  
  623.  
  624.  
  625.  
  626.  
  627.  
  628. See also
  629.  
  630.  
  631.  
  632.  
  633. parse method
  634.  
  635.  
  636.  
  637. ------------------------------------------------------------------------
  638.  
  639.  
  640.  
  641.  
  642.  
  643. write method
  644.  
  645.  
  646.  
  647.  
  648.  
  649.  
  650.  
  651. Write HTML to the current window, in sequence with the HTML containing this SCRIPT. SCRIPTs have no effect on paragraphs or other structures in which they may occur.
  652.  
  653.  
  654.  
  655.  
  656.  
  657. Syntax
  658.  
  659.  
  660.  
  661.  
  662. write()
  663.  
  664.  
  665.  
  666.  
  667.  
  668.  
  669. Description
  670.  
  671.  
  672.  
  673.  
  674.  
  675.  
  676. xxx Description to be supplied.
  677.  
  678.  
  679.  
  680.  
  681.  
  682. Applies to
  683.  
  684.  
  685.  
  686.  
  687.  
  688.  
  689. document
  690.  
  691.  
  692.  
  693.  
  694.  
  695. Examples
  696.  
  697.  
  698.  
  699.  
  700.  
  701.  
  702. xxx Examples to be supplied.
  703.  
  704.  
  705.  
  706.  
  707.  
  708. See also
  709.  
  710.  
  711.  
  712.  
  713. writeln method
  714.  
  715.  
  716. ------------------------------------------------------------------------
  717.  
  718.  
  719.  
  720.  
  721.  
  722. writeln method
  723.  
  724.  
  725.  
  726.  
  727.  
  728.  
  729.  
  730. The same as write(), but adds a newline character. Note that this affects only preformatted text (inside a <PRE>or <XMP>tag).
  731.  
  732.  
  733.  
  734.  
  735.  
  736. Syntax
  737.  
  738.  
  739.  
  740.  
  741. writeln()
  742.  
  743.  
  744.  
  745.  
  746.  
  747.  
  748. Description
  749.  
  750.  
  751.  
  752.  
  753.  
  754.  
  755. xxx Description to be supplied.
  756.  
  757.  
  758.  
  759.  
  760.  
  761. Applies to
  762.  
  763.  
  764.  
  765.  
  766.  
  767.  
  768. document
  769.  
  770.  
  771.  
  772.  
  773.  
  774. Examples
  775.  
  776.  
  777.  
  778.  
  779.  
  780.  
  781. xxx Examples to be supplied.
  782.  
  783.  
  784.  
  785.  
  786.  
  787. See also
  788.  
  789.  
  790.  
  791.  
  792.  
  793. write method
  794.  
  795.  
  796.